/*
 * @Author: cgl
 * @Date: 2023-04-17 11:04:52
 * @LastEditors: cgl
 * @LastEditTime: 2023-04-24 15:45:22
 * @FilePath: \public-health-emergencies-fed:\radiation-hygiene-fe\src\api\equipment\maintain.js
 * @Description: 
 * 
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved. 
 */
import request from '@/utils/request'

// 查询设备保养列表
export function equipmentMaintainList(params) {
  return request({
    url: '/basic/equipment/maintain/list',
    method: 'get',
    params,
  })
}
// 导出设备保养列表
export function equipmentMaintainExport(data) {
  return request({
    url: `/basic/equipment/maintain/export`,
    method: "post",
    data,
  });
}
// 获取设备保养详细信息
export function equipmentMaintainDetail(maintainId) {
  return request({
    url: '/basic/equipment/maintain/getInfo/' + maintainId,
    method: 'get'
  })
}
// 新增设备保养
export function equipmentMaintainAdd(data) {
  return request({
    url: `/basic/equipment/maintain/add`,
    method: "post",
    data,
  });
}
// 修改设备保养
export function equipmentMaintainEdit(data) {
  return request({
    url: '/basic/equipment/maintain/edit',
    method: 'post',
    data,
  })
}
// 删除设备保养
export function equipmentMaintainDelete(maintainIds) {
  return request({
    url: '/basic/equipment/maintain/remove/' + maintainIds,
    method: 'get'
  })
}